<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="security" uri="http://www.springframework.org/security/tags"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="../../resources/js/jquery-1.6.js"></script>
	<script type="text/javascript" src="../../resources/js/jquery.form.js"></script>
    <script type="text/javascript" src="../../resources/js/jquery-validation-1.8.0/jquery.validate.js"></script>
    <script type="text/javascript" src="../../resources/js/jquery-validation-1.8.0/additional-methods.js"></script>
    <script type="text/javascript" src="../../resources/js/jquery-ui-1.8.11.custom.min.js"></script>
    <script type="text/javascript" src="../../resources/js/jquery-ui-timepicker-addon.js"></script>
    <link rel="stylesheet" type="text/css" media="screen" href="../../resources/css/start/jquery-ui-1.8.10.custom.css"/>
<script type="text/javascript">
	function gotoWorksPage(e){
		window.parent.location=$(e).attr("href");
	}
</script>
</head>
<body>

	<ul>
	
	<c:choose>
	<c:when test="${not empty wdayslight }">
	<c:forEach var="wdl" items="${wdayslight }" >
		<li>
			Дата : ${wdl.workDate }<br/>
			Работодатель : ${wdl.work.employerFirstName} ${wdl.work.employerLastName}<br/>
			Время : ${wdl.startTime } - ${wdl.endTime }<br/>
			Тип работы : ${wdl.work.jobType.title }<br/>
			О работе : ${wdl.work.about }<br/>
            <a href="/works/${wdl.work.idWork}" onclick = "gotoWorksPage(this)">На страницу работы</a>
		</li>
	</c:forEach>
	</c:when>
	<c:otherwise>
	    На этот день ничего не запланировано...
	</c:otherwise>
	</c:choose>
	
	</ul>
</body>
</html>